package com.applet.mallappletbackstage.service;

import com.applet.mallappletbackstage.entity.Admin;
import com.applet.mallappletbackstage.entity.User;
import com.applet.mallappletbackstage.entity.vo.AdminRegisterVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author X
 * @since 2020-08-07
 */
public interface AdminService extends IService<Admin> {

    /***
     * 管理员登录
     * @param username
     * @param password
     * @return
     */
    Admin loginAdmin(String username, String password);

    /***
     * 管理员注册
     * @param adminRegisterVO
     * @return
     */
    int registerAdmin(AdminRegisterVO adminRegisterVO);

    /**
     * 获取用户列表
     * @param current
     * @return
     */
    Page<Admin> getUserList(Long current);
}
